#include <rclcpp/rclcpp.hpp> 
#include "ubt_mqtt/config.h"
#include "ubt_mqtt/ubt_communication.h"
#include "ubt_mqtt/node.h"
rclcpp::Node::SharedPtr node;

int main(int argc, char* argv[]) {
    rclcpp::init(argc, argv);
    node =  std::make_shared<rclcpp::Node>("ubt_mqtt_node");

    ubt::ConfigDataInfo::Instance().Initialize();

    std::unique_ptr<ubt::CUbtCommunicationNode> communication_node = std::make_unique<ubt::CUbtCommunicationNode>();

    communication_node->Initialize();
    rclcpp::spin(node);

    // 关闭ROS2 C++接口
    rclcpp::shutdown(); 

    return 0;
}

